import sys, os, re

# Import lib
sys.path.append('lib')
import urllib2
import mechanize

def displaymatch(match):
    if match is None:
        return None
    return '<Match: %r, groups=%r>' % (match.group(), match.groups())

print displaymatch(re.search("(x)","errox"))
